import { notification } from 'ant-design-vue';

notification.config({
  placement: 'topRight',
  duration: 3,
  rtl: false,
});

export function successNotification(message: string, description?: string) {
  return notification.success({
    message,
    description,
  });
}

export function errorNotification(message: string, description?: string) {
  return notification.error({
    message,
    description,
  });
}

export function infoNotification(message: string, description?: string) {
  return notification.info({
    message,
    description,
  });
}

export function warningNotification(message: string, description?: string) {
  return notification.warning({
    message,
    description,
  });
}
